provider "alicloud" {
  region = var.region
}

locals {
  # 定义重复使用的标签
  common_tags = {
    application = var.tags_application
    owner       = var.tags_owner
  }
}

# 创建ESSD云盘
resource "alicloud_ecs_disk" "essd_disk" {
  zone_id               = var.zone
  size                  = var.disk_size
  category              = var.disk_category
  description           = "Cloud Drive for Matrix Commons"
  tags                  = local.common_tags
}